package com.droowa.domain;

import java.io.Serializable;

public class CompletePCResult implements Serializable{
	
	private String fileName;
	private String completeId;
	private String completeName;
	private String completePrice;
	private String completeQuantity;
	private String mainboardName;
	private String cpuName;
	private String coolerName;
	private String memoryName;
	private String graphicName;
	private String hddName;
	private String ssdName;
	private String dvdName;
	private String soundName;
	private String powerName;
	private String caseName;
	private String osName;
	private int cnt;
	
	
	public CompletePCResult() {
		super();
	}


	public CompletePCResult(String fileName, String completeId,
			String completeName, String completePrice, String completeQuantity,
			String mainboardName, String cpuName, String coolerName,
			String memoryName, String graphicName, String hddName,
			String ssdName, String dvdName, String soundName, String powerName,
			String caseName, String osName, int cnt) {
		super();
		this.fileName = fileName;
		this.completeId = completeId;
		this.completeName = completeName;
		this.completePrice = completePrice;
		this.completeQuantity = completeQuantity;
		this.mainboardName = mainboardName;
		this.cpuName = cpuName;
		this.coolerName = coolerName;
		this.memoryName = memoryName;
		this.graphicName = graphicName;
		this.hddName = hddName;
		this.ssdName = ssdName;
		this.dvdName = dvdName;
		this.soundName = soundName;
		this.powerName = powerName;
		this.caseName = caseName;
		this.osName = osName;
		this.cnt = cnt;
	}


	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "CompletePCResult [fileName=" + fileName + ", completeId="
				+ completeId + ", completeName=" + completeName
				+ ", completePrice=" + completePrice + ", completeQuantity="
				+ completeQuantity + ", mainboardName=" + mainboardName
				+ ", cpuName=" + cpuName + ", coolerName=" + coolerName
				+ ", memoryName=" + memoryName + ", graphicName=" + graphicName
				+ ", hddName=" + hddName + ", ssdName=" + ssdName
				+ ", dvdName=" + dvdName + ", soundName=" + soundName
				+ ", powerName=" + powerName + ", caseName=" + caseName
				+ ", osName=" + osName + ", cnt=" + cnt + "]";
	}


	/**
	 * @return the fileName
	 */
	public String getFileName() {
		return fileName;
	}


	/**
	 * @param fileName the fileName to set
	 */
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}


	/**
	 * @return the completeId
	 */
	public String getCompleteId() {
		return completeId;
	}


	/**
	 * @param completeId the completeId to set
	 */
	public void setCompleteId(String completeId) {
		this.completeId = completeId;
	}


	/**
	 * @return the completeName
	 */
	public String getCompleteName() {
		return completeName;
	}


	/**
	 * @param completeName the completeName to set
	 */
	public void setCompleteName(String completeName) {
		this.completeName = completeName;
	}


	/**
	 * @return the completePrice
	 */
	public String getCompletePrice() {
		return completePrice;
	}


	/**
	 * @param completePrice the completePrice to set
	 */
	public void setCompletePrice(String completePrice) {
		this.completePrice = completePrice;
	}


	/**
	 * @return the completeQuantity
	 */
	public String getCompleteQuantity() {
		return completeQuantity;
	}


	/**
	 * @param completeQuantity the completeQuantity to set
	 */
	public void setCompleteQuantity(String completeQuantity) {
		this.completeQuantity = completeQuantity;
	}


	/**
	 * @return the mainboardName
	 */
	public String getMainboardName() {
		return mainboardName;
	}


	/**
	 * @param mainboardName the mainboardName to set
	 */
	public void setMainboardName(String mainboardName) {
		this.mainboardName = mainboardName;
	}


	/**
	 * @return the cpuName
	 */
	public String getCpuName() {
		return cpuName;
	}


	/**
	 * @param cpuName the cpuName to set
	 */
	public void setCpuName(String cpuName) {
		this.cpuName = cpuName;
	}


	/**
	 * @return the coolerName
	 */
	public String getCoolerName() {
		return coolerName;
	}


	/**
	 * @param coolerName the coolerName to set
	 */
	public void setCoolerName(String coolerName) {
		this.coolerName = coolerName;
	}


	/**
	 * @return the memoryName
	 */
	public String getMemoryName() {
		return memoryName;
	}


	/**
	 * @param memoryName the memoryName to set
	 */
	public void setMemoryName(String memoryName) {
		this.memoryName = memoryName;
	}


	/**
	 * @return the graphicName
	 */
	public String getGraphicName() {
		return graphicName;
	}


	/**
	 * @param graphicName the graphicName to set
	 */
	public void setGraphicName(String graphicName) {
		this.graphicName = graphicName;
	}


	/**
	 * @return the hddName
	 */
	public String getHddName() {
		return hddName;
	}


	/**
	 * @param hddName the hddName to set
	 */
	public void setHddName(String hddName) {
		this.hddName = hddName;
	}


	/**
	 * @return the ssdName
	 */
	public String getSsdName() {
		return ssdName;
	}


	/**
	 * @param ssdName the ssdName to set
	 */
	public void setSsdName(String ssdName) {
		this.ssdName = ssdName;
	}


	/**
	 * @return the dvdName
	 */
	public String getDvdName() {
		return dvdName;
	}


	/**
	 * @param dvdName the dvdName to set
	 */
	public void setDvdName(String dvdName) {
		this.dvdName = dvdName;
	}


	/**
	 * @return the soundName
	 */
	public String getSoundName() {
		return soundName;
	}


	/**
	 * @param soundName the soundName to set
	 */
	public void setSoundName(String soundName) {
		this.soundName = soundName;
	}


	/**
	 * @return the powerName
	 */
	public String getPowerName() {
		return powerName;
	}


	/**
	 * @param powerName the powerName to set
	 */
	public void setPowerName(String powerName) {
		this.powerName = powerName;
	}


	/**
	 * @return the caseName
	 */
	public String getCaseName() {
		return caseName;
	}


	/**
	 * @param caseName the caseName to set
	 */
	public void setCaseName(String caseName) {
		this.caseName = caseName;
	}


	/**
	 * @return the osName
	 */
	public String getOsName() {
		return osName;
	}


	/**
	 * @param osName the osName to set
	 */
	public void setOsName(String osName) {
		this.osName = osName;
	}


	/**
	 * @return the cnt
	 */
	public int getCnt() {
		return cnt;
	}


	/**
	 * @param cnt the cnt to set
	 */
	public void setCnt(int cnt) {
		this.cnt = cnt;
	}


	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((caseName == null) ? 0 : caseName.hashCode());
		result = prime * result + cnt;
		result = prime * result
				+ ((completeId == null) ? 0 : completeId.hashCode());
		result = prime * result
				+ ((completeName == null) ? 0 : completeName.hashCode());
		result = prime * result
				+ ((completePrice == null) ? 0 : completePrice.hashCode());
		result = prime
				* result
				+ ((completeQuantity == null) ? 0 : completeQuantity.hashCode());
		result = prime * result
				+ ((coolerName == null) ? 0 : coolerName.hashCode());
		result = prime * result + ((cpuName == null) ? 0 : cpuName.hashCode());
		result = prime * result + ((dvdName == null) ? 0 : dvdName.hashCode());
		result = prime * result
				+ ((fileName == null) ? 0 : fileName.hashCode());
		result = prime * result
				+ ((graphicName == null) ? 0 : graphicName.hashCode());
		result = prime * result + ((hddName == null) ? 0 : hddName.hashCode());
		result = prime * result
				+ ((mainboardName == null) ? 0 : mainboardName.hashCode());
		result = prime * result
				+ ((memoryName == null) ? 0 : memoryName.hashCode());
		result = prime * result + ((osName == null) ? 0 : osName.hashCode());
		result = prime * result
				+ ((powerName == null) ? 0 : powerName.hashCode());
		result = prime * result
				+ ((soundName == null) ? 0 : soundName.hashCode());
		result = prime * result + ((ssdName == null) ? 0 : ssdName.hashCode());
		return result;
	}


	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CompletePCResult other = (CompletePCResult) obj;
		if (caseName == null) {
			if (other.caseName != null)
				return false;
		} else if (!caseName.equals(other.caseName))
			return false;
		if (cnt != other.cnt)
			return false;
		if (completeId == null) {
			if (other.completeId != null)
				return false;
		} else if (!completeId.equals(other.completeId))
			return false;
		if (completeName == null) {
			if (other.completeName != null)
				return false;
		} else if (!completeName.equals(other.completeName))
			return false;
		if (completePrice == null) {
			if (other.completePrice != null)
				return false;
		} else if (!completePrice.equals(other.completePrice))
			return false;
		if (completeQuantity == null) {
			if (other.completeQuantity != null)
				return false;
		} else if (!completeQuantity.equals(other.completeQuantity))
			return false;
		if (coolerName == null) {
			if (other.coolerName != null)
				return false;
		} else if (!coolerName.equals(other.coolerName))
			return false;
		if (cpuName == null) {
			if (other.cpuName != null)
				return false;
		} else if (!cpuName.equals(other.cpuName))
			return false;
		if (dvdName == null) {
			if (other.dvdName != null)
				return false;
		} else if (!dvdName.equals(other.dvdName))
			return false;
		if (fileName == null) {
			if (other.fileName != null)
				return false;
		} else if (!fileName.equals(other.fileName))
			return false;
		if (graphicName == null) {
			if (other.graphicName != null)
				return false;
		} else if (!graphicName.equals(other.graphicName))
			return false;
		if (hddName == null) {
			if (other.hddName != null)
				return false;
		} else if (!hddName.equals(other.hddName))
			return false;
		if (mainboardName == null) {
			if (other.mainboardName != null)
				return false;
		} else if (!mainboardName.equals(other.mainboardName))
			return false;
		if (memoryName == null) {
			if (other.memoryName != null)
				return false;
		} else if (!memoryName.equals(other.memoryName))
			return false;
		if (osName == null) {
			if (other.osName != null)
				return false;
		} else if (!osName.equals(other.osName))
			return false;
		if (powerName == null) {
			if (other.powerName != null)
				return false;
		} else if (!powerName.equals(other.powerName))
			return false;
		if (soundName == null) {
			if (other.soundName != null)
				return false;
		} else if (!soundName.equals(other.soundName))
			return false;
		if (ssdName == null) {
			if (other.ssdName != null)
				return false;
		} else if (!ssdName.equals(other.ssdName))
			return false;
		return true;
	}


}
